
{extend name="layout/base"}
{block name="title"}自动回复{/block}
{block name="css"}
<link href="__admin_static__/css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="__admin_static__/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
{/block}
{block name="head_js"}{/block}
{block name="body"}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>自动回复　<a target="_self" href="{:url('KfReply/add')}"><span class="btn btn-w-m btn-primary"><i class="glyphicon glyphicon-plus"></i> 添加记录</span></a></h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                    <div class="clearfix" style="clear: both"></div>
                </div>

            </div>
        </div>

    </div>
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form method="post" action="{:url('index')}" target="_self">
                        <div class="row">
                            <div class="col-sm-2  m-b-xs">
                                <div class="input-group">
                                    <input name="keyword" type="text" {if condition="!empty($input['keyword'])"}value="{$input['keyword']}"{/if} placeholder="请输入关键词" class="input-sm form-control"> <span class="input-group-btn">
                                            <button type="submit" class="btn btn-sm btn-primary"> 搜索</button> </span>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="table-responsive">
                        <form method="post" action="{:url('delAll')}" id="ListForm"  target="_self">
                            <table class="table table-striped">
                                <thead>
                                <tr>

                                    <th></th>
                                    <th>标题</th>
                                    <th>排序 [值越大越靠前]</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {foreach name="reply_list" item="reply"}
                                <tr>
                                    <td>
                                        <input type="checkbox" class="i-checks" value="{$reply.id}" name="id[]">
                                    </td>
                                    <td>{$reply.title}</td>
                                    <td>{$reply.sort}</td>
                                    <td>
                                        <a href="{:url('edit',['id'=>$reply.id])}" target="_self"><i class="glyphicon glyphicon-pencil text-navy"></i></a>　
                                        <a  target="_self" onclick="javascript:Base_warning_location({title:'你确定给删除吗',text:'删除后将无法操作',confirmText:'删除',location:'{:url('del',['id'=>$reply.id])}',});"><i class="glyphicon glyphicon-remove text-danger"></i></a>
                                    </td>
                                </tr>
                                {/foreach}
                                </tbody>
                            </table>
                        </form>
                    </div>
                    <div class="row">
                        <div class="col-sm-5 m-b-xs">
                            <div class="pagination">
                                <button type="button" class="btn btn-w-m btn-default" onclick="javascript:Base_warning_form({target:'ListForm','title':'您确定删除被选中的回复信息吗'})">批量删除</button>
                            </div>
                        </div>
                        <div class="col-sm-7 m-b-xs">
                            <nav aria-label="Page navigation">
                                <style>
                                    .pagination > .active > span{
                                        background-color: #1c84c6 !important;
                                        color: #fff;
                                        border-color: #1c84c6;
                                    }
                                </style>
                                {$reply_page}
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__admin_static__/js/jquery.min.js?v=2.1.4"></script>
<script src="__admin_static__/js/bootstrap.min.js?v=3.3.5"></script>
<script src="__admin_static__/js/plugins/peity/jquery.peity.min.js"></script>
<script src="__admin_static__/js/content.min.js?v=1.0.0"></script>
<script src="__admin_static__/js/plugins/iCheck/icheck.min.js"></script>
<script src="__admin_static__/js/demo/peity-demo.min.js"></script>
<script src="__admin_static__/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="__admin_static__/js/base.js"></script>
<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>
</body>
{/block}
